<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-comment">-- | Utility json lib for Cabal</span><span>
</span><span id="line-2"></span><span class="hs-comment">-- TODO: Remove it again.</span><span>
</span><span id="line-3"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Distribution.Simple.Utils.Json</span><span>
</span><span id="line-4"></span><span>    </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#Json"><span class="hs-identifier">Json</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-5"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier">renderJson</span></a></span><span>
</span><span id="line-6"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-7"></span><span>
</span><span id="line-8"></span><span class="hs-keyword">data</span><span> </span><span id="Json"><span class="annot"><a href="Distribution.Simple.Utils.Json.html#Json"><span class="hs-identifier hs-var">Json</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="JsonArray"><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonArray"><span class="hs-identifier hs-var">JsonArray</span></a></span></span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#Json"><span class="hs-identifier hs-type">Json</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-9"></span><span>          </span><span class="hs-glyph">|</span><span> </span><span id="JsonBool"><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonBool"><span class="hs-identifier hs-var">JsonBool</span></a></span></span><span> </span><span class="hs-glyph">!</span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-10"></span><span>          </span><span class="hs-glyph">|</span><span> </span><span id="JsonNull"><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonNull"><span class="hs-identifier hs-var">JsonNull</span></a></span></span><span>
</span><span id="line-11"></span><span>          </span><span class="hs-glyph">|</span><span> </span><span id="JsonNumber"><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonNumber"><span class="hs-identifier hs-var">JsonNumber</span></a></span></span><span> </span><span class="hs-glyph">!</span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-12"></span><span>          </span><span class="hs-glyph">|</span><span> </span><span id="JsonObject"><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonObject"><span class="hs-identifier hs-var">JsonObject</span></a></span></span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#Json"><span class="hs-identifier hs-type">Json</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><span id="line-13"></span><span>          </span><span class="hs-glyph">|</span><span> </span><span id="JsonString"><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonString"><span class="hs-identifier hs-var">JsonString</span></a></span></span><span> </span><span class="hs-glyph">!</span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-14"></span><span>
</span><span id="line-15"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-type">renderJson</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#Json"><span class="hs-identifier hs-type">Json</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span>
</span><span id="line-16"></span><span id="renderJson"><span class="annot"><span class="annottext">renderJson :: Json -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var hs-var">renderJson</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonArray"><span class="hs-identifier hs-type">JsonArray</span></a></span><span> </span><span id="local-6989586621679612606"><span class="annot"><span class="annottext">[Json]
</span><a href="#local-6989586621679612606"><span class="hs-identifier hs-var">objs</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span>
</span><span id="line-17"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; String -&gt; ShowS -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#surround"><span class="hs-identifier hs-var">surround</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;[&quot;</span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;]&quot;</span></span><span> </span><span class="annot"><span class="annottext">(ShowS -&gt; ShowS) -&gt; ShowS -&gt; ShowS
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; [ShowS] -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#intercalate"><span class="hs-identifier hs-var">intercalate</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;,&quot;</span></span><span> </span><span class="annot"><span class="annottext">([ShowS] -&gt; ShowS) -&gt; [ShowS] -&gt; ShowS
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(Json -&gt; ShowS) -&gt; [Json] -&gt; [ShowS]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">Json -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var">renderJson</span></a></span><span> </span><span class="annot"><span class="annottext">[Json]
</span><a href="#local-6989586621679612606"><span class="hs-identifier hs-var">objs</span></a></span><span>
</span><span id="line-18"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var">renderJson</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonBool"><span class="hs-identifier hs-type">JsonBool</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span class="hs-special">)</span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;true&quot;</span></span><span>
</span><span id="line-19"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var">renderJson</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonBool"><span class="hs-identifier hs-type">JsonBool</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;false&quot;</span></span><span>
</span><span id="line-20"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var">renderJson</span></a></span><span>  </span><span class="annot"><span class="annottext">Json
</span><a href="Distribution.Simple.Utils.Json.html#JsonNull"><span class="hs-identifier hs-var">JsonNull</span></a></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;null&quot;</span></span><span>
</span><span id="line-21"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var">renderJson</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonNumber"><span class="hs-identifier hs-type">JsonNumber</span></a></span><span> </span><span id="local-6989586621679612602"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679612602"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; ShowS
forall a. Show a =&gt; a -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#shows"><span class="hs-identifier hs-var">shows</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679612602"><span class="hs-identifier hs-var">n</span></a></span><span>
</span><span id="line-22"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var">renderJson</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonObject"><span class="hs-identifier hs-type">JsonObject</span></a></span><span> </span><span id="local-6989586621679612600"><span class="annot"><span class="annottext">[(String, Json)]
</span><a href="#local-6989586621679612600"><span class="hs-identifier hs-var">attrs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-23"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; String -&gt; ShowS -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#surround"><span class="hs-identifier hs-var">surround</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;{&quot;</span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;}&quot;</span></span><span> </span><span class="annot"><span class="annottext">(ShowS -&gt; ShowS) -&gt; ShowS -&gt; ShowS
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; [ShowS] -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#intercalate"><span class="hs-identifier hs-var">intercalate</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;,&quot;</span></span><span> </span><span class="annot"><span class="annottext">([ShowS] -&gt; ShowS) -&gt; [ShowS] -&gt; ShowS
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">((String, Json) -&gt; ShowS) -&gt; [(String, Json)] -&gt; [ShowS]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">(String, Json) -&gt; ShowS
</span><a href="#local-6989586621679612599"><span class="hs-identifier hs-var">render</span></a></span><span> </span><span class="annot"><span class="annottext">[(String, Json)]
</span><a href="#local-6989586621679612600"><span class="hs-identifier hs-var">attrs</span></a></span><span>
</span><span id="line-24"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-25"></span><span>    </span><span id="local-6989586621679612599"><span class="annot"><span class="annottext">render :: (String, Json) -&gt; ShowS
</span><a href="#local-6989586621679612599"><span class="hs-identifier hs-var hs-var">render</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679612598"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612598"><span class="hs-identifier hs-var">k</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679612597"><span class="annot"><span class="annottext">Json
</span><a href="#local-6989586621679612597"><span class="hs-identifier hs-var">v</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; String -&gt; ShowS -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#surround"><span class="hs-identifier hs-var">surround</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\&quot;&quot;</span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\&quot;&quot;</span></span><span> </span><span class="annot"><span class="annottext">(ShowS -&gt; ShowS) -&gt; ShowS -&gt; ShowS
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#showString%27"><span class="hs-identifier hs-var">showString'</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612598"><span class="hs-identifier hs-var">k</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;:&quot;</span></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">Json -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var">renderJson</span></a></span><span> </span><span class="annot"><span class="annottext">Json
</span><a href="#local-6989586621679612597"><span class="hs-identifier hs-var">v</span></a></span><span>
</span><span id="line-26"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#renderJson"><span class="hs-identifier hs-var">renderJson</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#JsonString"><span class="hs-identifier hs-type">JsonString</span></a></span><span> </span><span id="local-6989586621679612594"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612594"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; ShowS -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#surround"><span class="hs-identifier hs-var">surround</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\&quot;&quot;</span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\&quot;&quot;</span></span><span> </span><span class="annot"><span class="annottext">(ShowS -&gt; ShowS) -&gt; ShowS -&gt; ShowS
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#showString%27"><span class="hs-identifier hs-var">showString'</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612594"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-27"></span><span>
</span><span id="line-28"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#surround"><span class="hs-identifier hs-type">surround</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span>
</span><span id="line-29"></span><span id="surround"><span class="annot"><span class="annottext">surround :: String -&gt; String -&gt; ShowS -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#surround"><span class="hs-identifier hs-var hs-var">surround</span></a></span></span><span> </span><span id="local-6989586621679612593"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612593"><span class="hs-identifier hs-var">begin</span></a></span></span><span> </span><span id="local-6989586621679612592"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612592"><span class="hs-identifier hs-var">end</span></a></span></span><span> </span><span id="local-6989586621679612591"><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679612591"><span class="hs-identifier hs-var">middle</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612593"><span class="hs-identifier hs-var">begin</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679612591"><span class="hs-identifier hs-var">middle</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612592"><span class="hs-identifier hs-var">end</span></a></span><span>
</span><span id="line-30"></span><span>
</span><span id="line-31"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#showString%27"><span class="hs-identifier hs-type">showString'</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span>
</span><span id="line-32"></span><span id="showString%27"><span class="annot"><span class="annottext">showString' :: String -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#showString%27"><span class="hs-identifier hs-var hs-var">showString'</span></a></span></span><span> </span><span id="local-6989586621679612590"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612590"><span class="hs-identifier hs-var">xs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612590"><span class="hs-identifier hs-var">xs</span></a></span><span>
</span><span id="line-33"></span><span>    </span><span class="hs-keyword">where</span><span>
</span><span id="line-34"></span><span>        </span><span class="annot"><a href="#local-6989586621679612589"><span class="hs-identifier hs-type">showStringWorker</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span>
</span><span id="line-35"></span><span>        </span><span id="local-6989586621679612589"><span class="annot"><span class="annottext">showStringWorker :: String -&gt; ShowS
</span><a href="#local-6989586621679612589"><span class="hs-identifier hs-var hs-var">showStringWorker</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'\&quot;'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679612588"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612588"><span class="hs-keyword hs-var">as</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\\\&quot;&quot;</span></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612588"><span class="hs-keyword hs-var">as</span></a></span><span>
</span><span id="line-36"></span><span>        </span><span class="annot"><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'\\'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679612587"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612587"><span class="hs-keyword hs-var">as</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\\\\&quot;</span></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612587"><span class="hs-keyword hs-var">as</span></a></span><span>
</span><span id="line-37"></span><span>        </span><span class="annot"><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'\''</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679612586"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612586"><span class="hs-keyword hs-var">as</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\\\'&quot;</span></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612586"><span class="hs-keyword hs-var">as</span></a></span><span>
</span><span id="line-38"></span><span>        </span><span class="annot"><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679612585"><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621679612585"><span class="hs-identifier hs-var">x</span></a></span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679612584"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612584"><span class="hs-keyword hs-var">as</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621679612585"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">]</span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612584"><span class="hs-keyword hs-var">as</span></a></span><span>
</span><span id="line-39"></span><span>        </span><span class="annot"><a href="#local-6989586621679612589"><span class="hs-identifier hs-var">showStringWorker</span></a></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span>
</span><span id="line-40"></span><span>
</span><span id="line-41"></span><span class="annot"><a href="Distribution.Simple.Utils.Json.html#intercalate"><span class="hs-identifier hs-type">intercalate</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span>
</span><span id="line-42"></span><span id="intercalate"><span class="annot"><span class="annottext">intercalate :: String -&gt; [ShowS] -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#intercalate"><span class="hs-identifier hs-var hs-var">intercalate</span></a></span></span><span> </span><span id="local-6989586621679612583"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612583"><span class="hs-identifier hs-var">sep</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[ShowS] -&gt; ShowS
</span><a href="#local-6989586621679612582"><span class="hs-identifier hs-var">go</span></a></span><span>
</span><span id="line-43"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-44"></span><span>    </span><span id="local-6989586621679612582"><span class="annot"><span class="annottext">go :: [ShowS] -&gt; ShowS
</span><a href="#local-6989586621679612582"><span class="hs-identifier hs-var hs-var">go</span></a></span></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShowS
forall a. a -&gt; a
</span><a href="../../base/src/GHC.Base.html#id"><span class="hs-identifier hs-var">id</span></a></span><span>
</span><span id="line-45"></span><span>    </span><span class="annot"><a href="#local-6989586621679612582"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="hs-special">[</span><span id="local-6989586621679612580"><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679612580"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">]</span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679612580"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-46"></span><span>    </span><span class="annot"><a href="#local-6989586621679612582"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679612579"><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679612579"><span class="hs-identifier hs-var">x</span></a></span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679612578"><span class="annot"><span class="annottext">[ShowS]
</span><a href="#local-6989586621679612578"><span class="hs-identifier hs-var">xs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679612579"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="Distribution.Simple.Utils.Json.html#showString%27"><span class="hs-identifier hs-var">showString'</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679612583"><span class="hs-identifier hs-var">sep</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">[ShowS] -&gt; ShowS
</span><a href="#local-6989586621679612582"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">[ShowS]
</span><a href="#local-6989586621679612578"><span class="hs-identifier hs-var">xs</span></a></span><span>
</span><span id="line-47"></span></pre></body></html>